package model

const (
	StoragePathTypeDirectory = 1 //目录
	StoragePathTypeImage     = 2 //图片
	StoragePathTypeVideo     = 3 //视频
	StoragePathTypeAudio     = 4 //音频
	StoragePathTypeOther     = 5 //其它
)

type File struct {
	Type         int    `json:"type,omitempty"`
	Name         string `json:"name,omitempty"`
	LastModified int64    `json:"lastModified,omitempty"`
	Size         int    `json:"size,omitempty"`
	Path         string `json:"path,omitempty"`
}

type ResponseFile struct {
	Type         int    `json:"type,omitempty"`
	Name         string `json:"name,omitempty"`
	LastModified string    `json:"lastModified,omitempty"`
	Size         int    `json:"size,omitempty"`
	Path         string `json:"path,omitempty"`
}

type Storage struct {
	Sn         string             `json:"sn,omitempty"`
	Partitions []RequestPartition `json:"partitions,omitempty"`
}

type RequestPartition struct {
	UUID          string `json:"uuid,omitempty"`
	TotalSize     int64  `json:"totalSize,omitempty"`
	AvailableSize int64  `json:"availableSize,omitempty"`
	Seq           int    `json:"seq,omitempty"`
	Path          string `json:"path,omitempty"`
	IsDPath       int    `json:"isDPath,omitempty"`
	DevName       string `json:"devName,omitempty"`
	Index         int    `json:"index,omitempty"`
}

type ResponsePartition struct {
	Sn            string `json:"storage_sn,omitempty"`
	UUID          string `json:"uuid,omitempty"`
	TotalSize     string `json:"totalSize,omitempty"`
	AvailableSize string `json:"availableSize,omitempty"`
	Seq           int    `json:"seq,omitempty"`
	Path          string `json:"path,omitempty"`
	IsDPath       int    `json:"isDPath,omitempty"`
	DevName       string `json:"devName,omitempty"`
	Index         int    `json:"index,omitempty"`
}
